package com.sz.biz.logistics.serialno.utils;

import com.sz.common.base.constants.RegularConstants;
import com.sz.common.base.utils.StringUtils;

/**
 * Function: 邮箱验证 <br>
 * Author: Johnboy <br>
 * Date: 2017-12-11 19:57:00
 */
public class EmailValid {
    public static boolean checkEmail(String email) {
        if (StringUtils.isEmpty(email)) {
            return false;
        } else {
            if (email.matches(RegularConstants.REG_EMAIL)) {
                return true;
            }
        }
        return false;
    }
}
